<?php
class User extends AppModel {
	var $name = 'User';
	var $displayField = 'username';
	var $validate = array(
		'username' => VALID_NOT_EMPTY,
		'password' => VALID_NOT_EMPTY,
		'firstname' => VALID_NOT_EMPTY,
		'lastname' => VALID_NOT_EMPTY,
		'email' => VALID_EMAIL,
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasMany = array(
			'Post' =>
				array('className' => 'Post',
						'foreignKey' => 'user_id',
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'dependent' => '',
						'exclusive' => '',
						'finderQuery' => '',
						'counterQuery' => ''
				)
	);
}
?>